package com.qingmu.club.minaapi.plus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Course extends Model<Course> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程价格
     */
    private BigDecimal coursePrice;

    /**
     * 课程宣传图
     */
    private String courseImage;

    /**
     * 商品介绍
     */
    private String courseIntro;

    /**
     * 课时数量
     */
    private Integer quantity;

    /**
     * 赠送积分
     */
    private Integer integral;

    /**
     * 课程状态1-上架0-落架
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 所属俱乐部ID
     */
    private String clubId;

    /**
     * 所属门店ID
     */
    private String shopId;

    /**
     * 类型：0课程 1商品
     */
    private Integer type;

    /**
     * 门店名称
     */
    private String shopName;


    public static final String ID = "id";

    public static final String COURSE_NAME = "course_name";

    public static final String COURSE_PRICE = "course_price";

    public static final String COURSE_IMAGE = "course_image";

    public static final String COURSE_INTRO = "course_intro";

    public static final String QUANTITY = "quantity";

    public static final String INTEGRAL = "integral";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String TYPE = "type";

    public static final String SHOP_NAME = "shop_name";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
